<?php 
require_once dirname(__FILE__) . '/common.inc.php';
$id = MiscUtils::getParam('i', NULL);
$cond_vals = new stdClass();
$cond_vals->c = 't.id = :v1';
$cond_vals->v = array(':v1' => $id);
$tmp = DbUtils::get(DbUtils::createPdoInst(), 'pz_theme', $cond_vals, NULL, NULL, NULL, NULL, NULL)->d;
if (count($tmp) == 0) {
  die('No Theme Found');
}
require_once dirname(__FILE__) . "/ext/ui/bin/" . $tmp[0]->folder . "/admin.php";
?>